package 数据类型转换.Demo;

public class Demo01 {
    public static void main(String[] args) {
        int a = 100;
        long b = a;
        float c = b;
        System.out.println(c);



        double x = 3.14159;
        int y = (int) x;
        byte z = (byte) 130;
        System.out.println("y = " + y);
        System.out.println("z = " + z);


        short s1 = 10;
        short s2 = 20;
        int s3 = s1 + s2; // 编译报错？
        System.out.println(s3);
    }
}
